package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
public class User {
    @TableId(type = IdType.AUTO)
    private long id;
    private String name;
    private long age;
    private String email;

    @TableField(fill = FieldFill.INSERT)
    private Date c_time;
    @TableField(fill = FieldFill.UPDATE)
    private Date u_time;


    @Version
    private Integer version;
    @TableLogic
    private Integer deleted;


}
